package com.bitcola.exchange.service;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.bitcola.exchange.feign.IConfigFeign;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 *  @author wx
 * @create 2019-02-13 11:53
 **/
@Service
public class AccountService {

    @Resource
    IConfigFeign configFeign;


    @Cached(name = "inviterRewardRate",cacheType = CacheType.LOCAL, expire = 60)
    public BigDecimal getTransactionInviterRate(){
        return new BigDecimal(configFeign.getConfig("referral_rewards_transaction_fees"));
    }

}
